The getTimeSeriesData method returns an instance of TimeSeries object for a given symbol.
TimeSeries getTimeSeriesData(symbol);
symbol
Symbol string for which to retrieve the TimeSeries object for.
This method returns a TimeSeries object filled with data for a given symbol. If no matching symbol is found, the method returns a null value.
The following example retrieves TimeSeries object and displays its contents to the debug console.
TimeSeries timeSeries = Chart.getTimeSeriesData("IBM");
if(timeSeries != null)
{
for(var i = 0; i < timeSeries.count(); i++)
{
Debug.writeLine(i + ": " + "open: " + timeSeries.open(i) +
" high: " + timeSeries.high() +
" low: " + timeSeries.low() +
" close: " + timeSeries.close());
}
}
Copyright © 2006-2009 ActiveTick LLC